Projects#update via ajax - refactoring