 		protected function submitButtonClickHandler(event:MouseEvent):void {
 			var messageResource:String;
 			var r:RecordProxy = Application.activeRecord;
-			if(r.step == RecordProxy$Step.ENTRY) {
+			if(r.step == CollectRecord$Step.ENTRY) {
 				messageResource = "edit.confirmSubmitDataCleansing";
-			} else if(r.step == RecordProxy$Step.CLEANSING) {
+			} else if(r.step == CollectRecord$Step.CLEANSING) {
 				messageResource = "edit.confirmSubmitDataAnalysis";
 			}
 			AlertUtil.showConfirm(messageResource, null, null, performSubmit);

	import org.openforis.collect.event.UIEvent;
	import org.openforis.collect.metamodel.proxy.EntityDefinitionProxy;
	import org.openforis.collect.metamodel.proxy.ModelVersionProxy;
	import org.openforis.collect.model.proxy.RecordProxy;
	import org.openforis.collect.model.proxy.RecordProxy$Step;
	import org.openforis.collect.ui.UIBuilder;
	import org.openforis.collect.ui.component.detail.FormContainer;
	import org.openforis.collect.ui.view.DetailView;

			_view.keyAttributeValuesText.text = keyValues;
			_view.rootEntityDefinitionText.text = activeRootEntity.getLabelText();
			_view.formVersionText.text = version.getLabelText();
			var submitButtonVisible:Boolean = activeRecord.step == CollectRecord$Step.ENTRY || 
				activeRecord.step == CollectRecord$Step.CLEANSING;
			_view.submitButton.visible = _view.submitButton.includeInLayout = submitButtonVisible;
			
			var rejectButtonVisible:Boolean = activeRecord.step == CollectRecord$Step.CLEANSING || 
				activeRecord.step == CollectRecord$Step.ANALYSIS;
			_view.rejectButton.visible = _view.rejectButton.includeInLayout = rejectButtonVisible;
			
			var form:FormContainer = null;
