inject getTodo function into EditController