replaced window.prompt with modals