fixed error handling
added delete to order controller