updating favorite button behavior