fixing logic to show filled events above the past events section on the index page