New methods for main window.
New methods for main window.