fix tab count
fix tab selector