clear alerts when changing tabs