add hashchange method