removing unneeded views