mainFrame reconstructure