Sets up todo ctrl and view