add TabWidget class
update tabbing function