added simplify method on LayoutBuilder, that collapses unneccessary nesting