Refactor MainFrame constructor to introduce extensibility & separate initialization routines