Fix bug in capemgr example, remove root option in Viewer class