code optimisation, add property treatAsSubView to configurator.