implement new behavior of the multilevel menu