refactors edit page into profile page