fix const char* writes in menu
get rid of some memory allocations in menu code