Could you explain the part with NavView(object)? Why did you change it and what does it change in the background?
The object in question, NavView has members (rootview, subview, navview) that are ui.Views or ui.NavigationViews but NavView is not a View. It is better thought of as a controller/coordinator/choreographer of Views.
These kind of objects a common in scripts that use .pyui views.