added main window instead of console
(it might be useful for tests)