extendedcommands.c: improved menu