Fixed a bug where after refresh, ajax forms would revert to being regular forms that caused a page refresh