updated menu, moved globals to its own module