Unified frontend alerts

Simpler alerting. Mimics the backend functions