Add start window; refactoring main window.