refreshed the list event function. Need to test it