fixed access to layouts in configure()