Setting span as default element for the widget