Added dynamic listeners for the list object that could scale for any possible size.

Consolidated the event callback to a wrapper function as it contained identical functionality.