allow enter to save and close modals