replace HBox and VBox with LayoutBox throughout