update day event ,refactor