Fix control order in main window.

close #34