check onhashchange propertly