update menu and window