added code to list events