added data#index and  #controller
errors