hashchange event listener on window should be set for all browsers since we trigger hashchange event for unsupported browsers