Redesign dimmer directive