remove trailing spaces
add combo box for result type selector
separate _get_data method that collects the configuration options from the GUI