formated code
correct tabindex for rows added at top