Add optional "tabindex"attribute to widgets