Starting to fix top-bar
Top bar working better
Fixed settings event handlers so they would not be triggered during render
Fixed main page encapsulation
Close topbar on return to main page