added events page and edited main script