adding favoriting functionality