Clear alerts on state change, closes #207