fixed new todo creation when incorrect
some style improvements