added functionality to user view page