refactored project_view by adding all necessary logic to Project object