Refactor viewnavigator

This style name doesn't really make sense because it applies to the Main class