Refactor alerts to go through error, warn, info success functions