if alert confirm shown switch