added function getUserFavorites