created sendNotification method in application controller