standardize the layout functionality