Moved index back to views