terminology change: module -> tab (completed)
get rid of unneeded tabIndex local variable