changing local variables to global in menu slices