using standard way to detect list item click
cleaup code