Implemented edit action for the tasks controller