query doc  on load and add params to  render view