change alert to layer