Fixed type submit, add todo script