added confirm/submit handlers to modals