hooking up plumbing for the tab states #186

would I do something like this? @ianb @gregglind