Replaced StackedLayout with BoxLayout