layer change in alert button click