Declare main window as main frame in Application exactly.