Extract dragstart event handler to function
Modify task interface