private String formatLayout() {
		String msg = "";
		this.processStep = "(" + this.stepNumber + "/" + (this.activities.size() - 2)  + ") "; //reduce two from size() since start and end activities are counted in size
		if (this.getActivity(this.currentStepId).getName() != null) msg += this.processStep + this.getActivity(this.currentStepId).getName()  + "<br />";
		if (this.getActivity(this.currentStepId).getDescription() != null) msg += Resources.DIV_OPEN + this.getActivity(this.currentStepId).getDescription() + "</td></tr><tr><td>";
		if (this.getActivity(this.currentStepId).getImagePath() != null && this.getActivity(this.currentStepId).getImagePath().length() > 0 ) msg +=  "<img src=\"" + this.getActivity(this.currentStepId).getImagePath() + "\"</img>"  + Resources.DIV_CLOSE + "</td>";
		if (this.getActivity(this.currentStepId).getVideoComponent() != null && this.getActivity(this.currentStepId).getVideoComponent().length() > 0 ) msg += this.getActivity(this.currentStepId).getVideoComponent()  + Resources.DIV_CLOSE + "</td>";
		if (this.getActivity(this.currentStepId).getAttachedUtensil() != null && this.getActivity(this.currentStepId).getAttachedUtensil().getImagePath().length() > 0 ) msg +=  "<td><table><tr><td class=\"table_cell\">" + Resources.UTENSIL_LABEL + "</td></tr><tr><td class=\"table_cell\"><img src=\"" + this.getActivity(this.currentStepId).getAttachedUtensil().getImagePath() + "\"</img></td></tr><tr><td class=\"table_cell\">"; 
		if (this.getActivity(this.currentStepId).getCamera() > 0) msg += Resources.CAMERAS[this.getActivity(this.currentStepId).getCamera() - 1] + Resources.DIV_CLOSE + Resources.DIV_CLOSE;
			
		this.appendVariable(Integer.toString(this.getActivity(this.currentStepId).getDuration())); //write duration in to a text file which will be read by javascript timer later
		   
		return msg;
	}