refactored the complete and trash a todo action, and removed the event related testing code from the todo controller