moved index route to separate file