Improves code structure for Buttons in MagicLearnView