Moved submitFormHideModal to common.js