some refactoring to eliminate sprintf in menu.c and move strings out of main memory