pass tests for has_many projects for user
refactor code from app into user view
remove defunct code and whitespace