Copy search query handling from /list_incidents
Update home page