Adding task edit mode and fixing a click event bug on the task list