simplify tab drawing code

... and reduce number of text entries as well.