correct index method on controller