refactor navigation-view
fix xtemplate gen