functional rudiments of a menu system