added a layer selector widget.