set active tab in header, fix #392