refactoring(alerts):
AlertService in common
showAlerts directive in common
used in main window