finish add favorite function