Fixed toggleSubmitControls not available in modals.