Index: /controller/wpsg_AdminController.class.php
===================================================================
--- /controller/wpsg_AdminController.class.php	(revision 6500)
+++ /controller/wpsg_AdminController.class.php	(revision 6501)
@@ -233,12 +233,5 @@
 
 		} // public function indexAction()
-
-		private function downloadLicenceAction()
-		{
-
-			wpsg_header::startDownloadContent('key.txt', $this->shop->get_option('wpsg_key'));
-
-		} // private function downloadLicenceAction()
-
+ 
 		/**
 		 * Beim Speichern und Anzeigen der Shopdatne
Index: /controller/wpsg_ShopController.class.php
===================================================================
--- /controller/wpsg_ShopController.class.php	(revision 6500)
+++ /controller/wpsg_ShopController.class.php	(revision 6501)
@@ -619,7 +619,5 @@
 		public function initShop($prefix)
 		{
-			
-			wpsg_debug_console($this->get_option('wp_installed'));
-			
+						
 			if (is_admin() && defined('FORCE_SSL_ADMIN') && FORCE_SSL_ADMIN == true)
 			{
Index: /controller/wpsg_SystemController.class.php
===================================================================
--- /controller/wpsg_SystemController.class.php	(revision 6500)
+++ /controller/wpsg_SystemController.class.php	(revision 6501)
@@ -515,27 +515,4 @@
 				$strOut .= '</div>'; 
 				
-			}
-
-			$wpsg_update_data = wpsg_get_update_data();
-
-			if (is_object($wpsg_update_data['updateData']))
-			{
-
-				$arBanner = $wpsg_update_data['updateData']->banner;
-	
-				if (wpsg_isSizedArray($arBanner))
-				{
-	
-					foreach ($arBanner as $b)
-					{
-	
-						$strOut .= '<div class="wpsg_banner '.$b['class'].'">';
-						$strOut .= $b['content'];
-						$strOut .= '</div>';
-	
-					}
-	
-				}
-	
 			}
 			
Index: /lib/filter_functions.inc.php
===================================================================
--- /lib/filter_functions.inc.php	(revision 6500)
+++ /lib/filter_functions.inc.php	(revision 6501)
@@ -59,4 +59,6 @@
 
         } 
+		
+		echo $GLOBALS['wpsg_sc']->writeBackendMessage();
 
     }
@@ -76,5 +78,5 @@
 				echo '<tr class="plugin-update-trr '.((is_plugin_active(WPSG_FOLDERNAME.'/wpshopgermany.php'))?'active':'').'" id="wpsg-licence"><td colspan="4">';			
 				
-				echo $GLOBALS['wpsg_sc']->writeBackendMessage();
+//				echo $GLOBALS['wpsg_sc']->writeBackendMessage();
 
 				echo '<span id="wpsg_lizenz_link">';
@@ -97,11 +99,13 @@
                 }
 
-                echo '<a style="" onclick="jQuery(\'#wpsg_lizenz\').show(500); jQuery(\'#wpsg_lizenz_link\').hide(); return false;" href="">'.__('Neue Lizenz aktivieren', 'wpsg').'</a>';
+                echo '<a style="" onclick="jQuery(\'#wpsg_lizenz\').show(100); jQuery(\'#wpsg_licence_file\').focus(); jQuery(\'#wpsg_lizenz_link\').hide(); return false;" href="">'.__('Neue Lizenz aktivieren', 'wpsg').'</a>&nbsp;|&nbsp;';
+				echo '<a style="" onclick="return confirm(\''.__('Sind Sie sich sicher?', 'wpsg').'\');" href="'.WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&wpsg_removelicence_submit=1">'.__('Lizenz lÃ¶schen', 'wpsg').'</a>';
 				echo '</span>';
 
                 echo '<div id="wpsg_lizenz" style="display:none;"><div style="display:flex; align-items:center;">';
                 echo '<strong style="margin-left:40px;">'.__('Lizenzcode: ', 'wpsg').'</strong>';
-                echo '<input type="text" style="margin:0px 10px;" name="wpsg_licence_file" />';
-                echo '<input type="submit" style="margin:0px 10px;" class="button" value="'.__('Code prÃŒfen', 'wpsg').'" name="wpsg_insertlicence_submit" />';
+                echo '<input type="text" style="margin:0px 10px;" id="wpsg_licence_file" name="wpsg_licence_file" />';
+                echo '<input type="submit" style="margin:0px 10px;" class="button" value="'.__('Code prÃŒfen', 'wpsg').'" id="wpsg_insertlicence_submit" name="wpsg_insertlicence_submit" />';
+				echo '<input type="hidden" name="" id="wpsg_insertlicence_hidden" value="1" />';
                 echo '</div></div>';
 
@@ -109,4 +113,5 @@
 
 				echo 'jQuery("input[name=\'wpsg_insertlicence_submit\']").on("click", function() { jQuery("tr[data-slug=\'wpshopgermany\']").find("input[type=\'checkbox\']").prop("checked", true); } ); ';
+				echo 'jQuery("input[name=\'wpsg_licence_file\']").on("keydown", function(event) { if(event.which == 10 || event.which == 13) { jQuery("#wpsg_insertlicence_hidden").attr("name", "wpsg_insertlicence_submit"); jQuery("#wpsg_insertlicence_submit").click(); }  } ); ';
 				echo 'jQuery("#the-list").parent().parent().attr("enctype", "multipart/form-data"); ';
 				
@@ -342,6 +347,7 @@
 	function wpsg_api_call($func, $arParam = array(), $key = false)
 	{
-		
-		wpsg_debug_console('ApiCall:'.$func);
+				
+		//wpsg_debug_console('wpsgApiCall: '.$func);
+		//wpsg_debug('wpsgApiCall: '.$func);
 				
 		$plugin_data = get_plugin_data(dirname(__FILE__).'/../wpshopgermany.php');
@@ -357,7 +363,11 @@
 			'data' => $arParam
 		)); 
-				
+		
+		//wpsg_debug('wpsgApiReturn: '.$api_return);
+		
 		$api_return_json = json_decode($api_return, true);
-						
+		
+		//wpsg_debug_console($api_return_json);
+		
 		if (wpsg_isSizedArray($api_return_json)) 
 		{
@@ -398,5 +408,5 @@
         if ($force === true) $wpsg_lastupdate = false;
 		
-		$min = 15;
+		//$min = 15;
 		$min = 0.2;
 		 
@@ -407,6 +417,6 @@
             {
 
-				$wpsg_update_data_return = wpsg_api_call('checkUpdate');
-			
+				$wpsg_update_data_return = wpsg_api_call('checkUpdate', array(), $key);
+				
                 if (wpsg_isSizedArray($wpsg_update_data_return) && isset($wpsg_update_data_return['returnCode']))
                 {
@@ -497,4 +507,18 @@
 			$AC->loadLicenceAction();
 			
+		} 
+		else if (isset($_REQUEST['wpsg_removelicence_submit']))
+		{
+			
+			if (!current_user_can('edit_plugins')) die();
+			
+			$GLOBALS['wpsg_sc']->update_option('wpsg_key', false);
+			$GLOBALS['wpsg_sc']->update_option('wpsg_lastupdate', false);
+            $GLOBALS['wpsg_sc']->update_option('wpsg_updatedata', false);
+			
+			$wpsg_update_data = wpsg_get_update_data(false, true);
+			
+			$GLOBALS['wpsg_sc']->redirect(WPSG_URL_WP.'wp-admin/plugins.php');
+			
 		}
 		
