added support for layout groups