add onhashchange functions