Commit for main window