updatd code for profile page