anchor.diff:              modal: false
           }).plug(A.Plugin.IO, {uri: portletURL.toString()}).render();
           dialog.show();
  -	});
  +});
   </aui:script>
   
   <!-------------------------------------- BUTTON delete MARKER ----------------------------->
   <div id="<portlet:namespace />marker-controls-delete" style="display:inline-block;">
  -	<aui:button name="button_delete_marker" value="lschen" style="width: 80px;"/>
  +<aui:button name="button_delete_marker" value="lschen" style="width: 80px;"/>
   </div>
   <aui:script use="aui-dialog">
  -	
  -	var button = A.one('#<portlet:namespace />button_delete_marker');
  -	
  -	button.on('click', function() {
  -	
  -		A.io.request('<%= eventHandlerURL %>', {
  -						method: 'POST',
  +
  +var button = A.one('#<portlet:namespace />button_delete_marker');
  +
  +button.on('click', function() {
  +
  +A.io.request('<%= eventHandlerURL %>', {
  +method: 'POST',
                           dataType: 'json',
                           data: {
  -                        		action: 'deleteMarker',
  -                            	markerId: toDeleteMarkerId
  +                         action: 'deleteMarker',
  +                             markerId: toDeleteMarkerId
                           },
                           on: {
  -                            	success: function() {
  -                            		var result = this.get('responseData');
  -                            		if(result == "success"){
  -                            			deleteMarkerWithId(toDeleteMarkerId);
  -                            		} else {
  -                            			
  -                            			alert('Es ist ein Fehler aufgetreten:' + result);
  -                            		}
  -                            	}
  +                             success: function() {
  +                             var result = this.get('responseData');
  +                             if(result == "success"){
  +                             deleteMarkerWithId(toDeleteMarkerId);
  +                             } else {
  +                            
  +                             alert('Es ist ein Fehler aufgetreten:' + result);
  +                             }
  +                             }
                           }
            });
        });
  
positive.code: 
  <!-------------------------------------- BUTTON END for MARKER ----------------------------->
  <div id="<portlet:namespace />marker-controls-end" style="display:inline-block;">
  	<aui:button name="button_end_marker" value="&lt;&lt; zur&uuml;ck" style="width: 80px;"/>
  </div>
  <aui:script use="aui-button">
  	
  	var button = A.one('#<portlet:namespace />button_end_marker');
  
  	button.on('click', function() {
  			hideAllActionControls();
  			A.one('#<portlet:namespace />button-do-marker').show();
  			A.one('#<portlet:namespace />button-do-image').show();
  			addMarkersView.setVisibility(false);
  			setButton("button_fix_marker", "disable", namespace);
  			
       });
  </aui:script>
  
  
  <portlet:actionURL name="fileUpload" var="fileUploadURL" />
  <%
     	String fileUploadURLString = fileUploadURL.toString();
  %>
  
  <div id="<portlet:namespace />picture-controls">
  
negative.code: <!-------------------------------------- BUTTON END for PICTURE ----------------------------->
  <aui:button name="button_end_picture" value="&lt;&lt; zur&uuml;ck" style="width: 80px;"/>
  <aui:script use="aui-button">
  
  var button = A.one('#<portlet:namespace />button_end_picture');
  
  button.on('click', function() {
  hideAllActionControls();
  A.one('#<portlet:namespace />button-do-marker').show();
  A.one('#<portlet:namespace />button-do-image').show();
  pictureAddVectorLayer.setVisibility(false);
  
       });
  </aui:script>
  <br />
  <!-------------------------------------- FILE upload ----------------------------->
  1. <%= LanguageUtil.get(pageContext, "upload-picture-drawing") %>:
  <aui:form name="fm" action="<%= fileUploadURLString %>" method="post" enctype="multipart/form-data">
  <aui:input type="file" name="form_file" label="" size="40"/>
  <aui:button type="submit" name="form_upload_button" value="Hochladen"/>
  </aui:form>
  
  <aui:script use="aui-oi-request">
  A.one('#<portlet:namespace />form_upload_button').on('click',function(){
  
  var file_path =A.one('#<portlet:namespace />form_file_path').get('value');
  A.io.request('<%= fileUploadURL %>', {
  method: 'POST',
  dataType:'json',
                          contentType:'multipart/form-data',
                          data: {
                           file: form_file,
                          },
                          on: {
                               success: function() {
                               alert('upload successful');
                               }
                          }
                      });
       });
  