added smarttab modifications