fixes the layout