update plaintext menu function