cleanup the layout page