First draft of smarttabs