add main window
add statusBar