refactoring referenced projects and histories in profile page
refactoring profile page using has_many method