It would have been a bit easier for me to read if render had come before setTab.  <shrug>