added code to hide past events