fixing jquery mobile loading multiple times after submitting application