begin of a main menu management