chaged tempEvent to just event but with a status field