showprofile functionality