Normalize the layout