implementing likes and view favorites of logged in user