added tabindex for dialog