added selection states logic
Added selection states logic