made TaskInputController also a PopupMenuListener so that we can listen to the dropdown change