Refactored ProjectController so associations are only retrieved when clicking on Edit