forgot to handle the click event for the list