remove unused code and layouts