fixing selected state for modal list items