added the function to edit tasks already created