switch header/main code in text view support.