refactored completions controller to be cleaner and moved stuff into methods on the todo model