removing unneeded layouts