Tabs: Changed updateHash functionality into a function