updating url when tab changed through push state