correction of text doc button switch