handle alert classes