change query click and select