remember current selection when list changes