logic for moving through query results, removed pretty depenancy since it was causing the lowdash template issue