Catch notification / Changed: statistic button will not be removed

Change-Id: I9305a8b387957d7ad6c51149aca7321a8c65ace2
diff --git a/dev/js/src/vc/statistic.js b/dev/js/src/vc/statistic.js
index a5a2f02..4a40ea5 100644
--- a/dev/js/src/vc/statistic.js
+++ b/dev/js/src/vc/statistic.js
@@ -42,10 +42,10 @@
 			if (this._element !== undefined) {
 	      return this._element;
       };
-      
-      //create HTML Description List Element
-			var statDL = document.createElement('dl');
-			var statistic = this._statistic;
+   
+      //create HTML Description List Element	
+      var statDL = document.createElement('dl');
+		  var statistic = this._statistic;
 			
 			var keys = Object.keys(statistic);
 			for(i = 0; i <  keys.length; i++){
@@ -81,6 +81,14 @@
 						cb(null);
 						return;
 					}
+					
+					//catches notifications
+					if(statResponse["notifications"] !== null && statResponse["notifications"] !== undefined ){
+						notif = statResponse["notifications"];
+						KorAP.log(0, notif[0][1]);
+						return;
+					}
+					
 					cb(statResponse);
 				});
 			}
@@ -123,12 +131,6 @@
 				
 			statTable.classList.remove('loading');
 			statisticobj = that.create(statistic);
-			
-			//Removes statistic button when statistic is displayed
-			if(document.getElementById('dCorpStat') !== null){
-				var divStatButton = document.getElementById('dCorpStat');
-				divStatButton.parentNode.removeChild(divStatButton);
-			}
       
 			statTable.appendChild(statisticobj.element());
 			
@@ -142,7 +144,6 @@
 			b.addEventListener('click', function (e){
 				statTable.parentNode.removeChild(statTable);
 				that._visibleStat = false;
-				vc.addStatBut();
 				e.halt();
 				});
 			});