refactoring the profile view WIP