add setHashUrl function