handle history nav, refresh, query params. not using cookie