Add select item by id function
Select an item when the title is clicked