update inject main window