complete todo task, prepare to submit to the server