make index route work