moved index to app/view