Switch to Optional for active frame in MainFrame