add edit order controller function