Markers add and remove based on query contents