correctly preserve a views container