created listItemClick method to help bring order to code.