MainFrame class