added tab selection