finish the layout