added some js to edit the tasks