got favorite and unfavorite functions working