implemented show and update profile