fix condition to display "No past events"