moved index contents to view