switch to using a form to save favorites so it works without javascript