adding user interaction (alert, confirm, prompt)