Events patch

Fixed problem of events appearing twice or more,
Past events do not appear on the list