change the MainFrame