Switch to side-by-side view

--- a/controllers/controllerV0.js
+++ b/controllers/controllerV0.js
@@ -80,8 +80,10 @@
 		database.checkIfTokenExists(req.body.token, function(isOK, reason){
 			if(isOK) {
 				//controllerNotification.notificationsCheck(req.body.body, req.body.emailTo, req.body.token, function(isOK, reason){
-				controllerNotification.notificationHandler(req.body.body, req.body.emailTo, req.body.token, function(ifOK, reason){
+				controllerNotification.notificationHandler(req.body.body, req.body.emailTo, req.body.token, function(ifOK, reason, notificationsCreated){
 					if(isOK) {
+						//execute email based on the reason
+						controllerNotification.cronDispatcher(req.body.emailTo,reason);
 						sendResponse(200, {success: true, reason:reason},"Notification: Success", res);
 					}else {
 						sendResponse(500, {success: false, reason: reason},"Notification: "+reason, res);