Tab state correctly displayed on page load

- resolves #10
- pushState is also handled correctly