added function deleteFavorite