fixing selected state for modal list items

Fixing selected state for modal list items.