update editorder controller function