deleting record from editing window