refactored the todos loading out of the index view logic
fixed error in loading
loading the create-todo template from within the index app