Refactor profile view