adding listItem function to