handle location hash parameters on startup