moved index to app