simplify alerts and add to mixins