Save state when the selection list is closed