set active tab a little more intelligently
connect content