Add logic to add viewer or layers config to widgets.