updated compare controller and view