Delete the right number of saved states when selecting one of the options.