implement new query on change to input