remove extraneous layout tags