add diagram layers