Taking into account the polymorphic relationship of Project and other changes in model/controller classes