update url hash based on tabs