Make code widget configurable

This pr makes the widget configurable through parameters in config.yml