updated MainWin to get focus on the input area on creation and clear the
input area each time a command is taken