code: function layoutInit() {
    IBMChat.subscribe('layout:choose', function(data) {
      var widget = new Choose(data);
      widgets[data.uuid] = widget;
    });
    IBMChat.subscribe('layout:confirm', function(data) {
      var widget = new Choose(data);
      widgets[data.uuid] = widget;
    });
  }
docs: our layout's init function. We subscribe to both 'choose' and 'confirm' layout events so this is used to render both.