Fixed an issue where the View Button was not updating when switching views.