Functionality to close order, changed the models again, added url for closeorder view