Added update task functionality