Added main window realization.