added logic to display events only if available