Fixing Scope accessing the menu state variable globally