moved the notifications method to the application controller to be access globally.