fix to display previously selected list item properly