cleanup the layout