Hook up saving and restoring view.