anchor.diff:  					// restore previous settings after generating xml string
   					alterFn(diagram, true);
   
  -					// temp hack for shifted axis values (see also loadSVG function in plots_tab.jsp)
  -//					svgString = svgString.replace(/<text y="9" x="0" dy=".71em"/g,
  -//						"<text y=\"19\" x=\"0\" dy=\".71em\"");
  -//					svgString = svgString.replace(/<text x="-9" y="0" dy=".32em"/g,
  -//						"<text x=\"-9\" y=\"3\" dy=\".32em\"");
  -
   					// set actual value of the form element (svgelement)
   					var form = mainView.$el.find("." + formClass);
   					form.find('input[name="svgelement"]').val(svgString);
  
positive.code: 				var submitForm = function(alterFn, diagram, formClass)
  				{
  					// alter diagram to have the desired output
  					alterFn(diagram);
  
  					// convert svg content to string
  					var xmlSerializer = new XMLSerializer();
  
negative.code: 					form.submit();
  				};
  
  				// TODO setting & rolling back diagram values (which may not be safe)
  
  				// helper function to adjust SVG for file output
  				var alterDiagramForSvg = function(diagram, rollback)
  				{
  					var topLabel = gene;
  
  					if (rollback)
  					{
  						topLabel = "";
  					}
  
  					// adding a top left label (to include a label in the file)
  					diagram.updateTopLabel(topLabel);
  				};
  
  				// helper function to adjust SVG for PDF output
  				var alterDiagramForPdf = function(diagram, rollback)
  				{
  					// we also need the same changes (top label) in pdf
  					alterDiagramForSvg(diagram, rollback);
  
  					cbio.util.alterAxesAttrForPDFConverter(
  							diagram.svg.select(".mut-dia-x-axis"), 8,
  							diagram.svg.select(".mut-dia-y-axis"), 3,
  							rollback);
  				};
  
  				//add listener to the svg button
  				svgButton.click(function (event) {
  					// submit svg form
  					submitForm(alterDiagramForSvg, diagram, "svg-to-file-form");
  				});
  
  				// add listener to the pdf button
  				pdfButton.click(function (event) {
  					// submit pdf form
  					submitForm(alterDiagramForPdf, diagram, "svg-to-pdf-form");
  				});
  