add tabs and table listeners