update loop and menu