fix favorite button and add to favorite method