Edit tasks functionality