remove unused layout elements