small event@end_time related changes, and fixed a bug by removing .time from  ['time'].time