update task list function working
new code for adding tasks