Simplified approach, implemented selection when clicking item