Add custom overload for MainFrame