newui: Improve object versions functionality

* Refresh models after a version has been restored.
* Hide versions when transitioning to another route.