handle subgrid, search and events