Fixed deperecation in the index view. Fixed naming of controller