Modified MainActivity to remember previous choices of NumScales