detail view fav/unfav function working