implemented Alerts service which adds alerts to the notification area instead of alert() function.