Remove all alerts and prompts to cope with ipad click event triggering twice