 	 * */
 	import flash.display.DisplayObject;
 	import flash.events.Event;
-	import flash.events.FocusEvent;
 	import flash.events.MouseEvent;
 	
+	import mx.collections.ArrayCollection;
 	import mx.collections.IList;
 	import mx.collections.ListCollectionView;
 	import mx.core.FlexGlobals;

		protected function editButtonClickHandler(event:MouseEvent):void {
			var selectedRecord:RecordProxy = _view.dataGrid.selectedItem as RecordProxy;
			if(selectedRecord != null) {
				selectedRecord.showErrors(); //to make validation errors visible
				var uiEvent:UIEvent = new UIEvent(UIEvent.RECORD_SELECTED);
				uiEvent.obj = selectedRecord;
				eventDispatcher.dispatchEvent(uiEvent);

			var offset:int = (currentPage - 1) * MAX_RECORDS_PER_PAGE;
			
			_dataClient.getRecordSummaries(new AsyncResponder(getRecordsSummaryResultHandler, faultHandler), Application.activeRootEntity.name, 
				offset, MAX_RECORDS_PER_PAGE, currentSortFields, currentFilter);
		}
		
		protected function getRecordsSummaryResultHandler(event:ResultEvent, token:Object = null):void {
