fix project tree and

add error message if editing of task fails