Refactored todo controller to be todos controller