Change resultset when clicking the dropdown button, and added doubleclick to the text box