added special tabindex logic