remove unneeded layouts