fixing "add time block" event function