bug fixing, connect tabs