refactor profile page. moved code to many many partials