correcting bugs related to menus