add URL query functionality