added front end code for the profile page