Add constructor for MainFrame