create update method in task controller