Added isolated and shared alerts between directives with the help of Thomas Ballinger