Hook up compare to view