UI extension, added rules, added single-layer support