created favorite button helper method