This works to break out the data like you want, you just need to refactor it to work on the list item click like you want.