added extra state 'isSelected'