sample app with index