Added posibility to edit tasks. New data structure of events.