fix refactoring bugs
update profile page