update ag search to use dispatch