Changes based on the query changes