edited todo controller