added oninput for cquery