switch to block form when dealing with JS modals