Fixed the topView function. Now need to create function to publish on all views in a tree using this.