delete addFavorite function