Update menus_demo.cpp

Some bug fixes and changes