React to a list item being clicked