added prompt, alert and confirm