UI changes for submitting query