refactor profile page