added support for layering control in layout editor