Adding deferred commands to the Select setValues to make sure the element is in the DOM.