added method to add favorites