next url, pass dom not url to get fns