set up tab states for tabs directive