changed date datatype and added logic for showing next event