update edit task method