fixed tab selection glitch
tab selection glitch