make favorites button functioning