moved project's status check to projects_controller