preserve selection on toggle