menu and thread