refactored totals calculation in order controller
refactored order controller, added before filter on show and update