fix core dump when deleting first level task
Add first level task entry in new task dialog
add undo/redo for create/delete task