updated todo template
updated todo api
added completed status