change main And MainFrame, and delete arguments