take out renderQueryOptions from afterRender