alert on mode switch