added methods in taskmodel, to be able to edit tasks