updated favourites functionality