add return statements to favorite/unfavorite