add showtext function, correcting layout of text