working around for hashchange browsers