Moved index to use view.