Saving the state in the Panner