changed favorite button to use flipswitch. moved favorite script into include file.