simplify the way to display a layout