Add tasks edit function