added getTabFlags