some minor changes to how the alert works