added tab functions