changes to order model and views.