Extracted alert from ApllicationController into a separate $alert service