proper configuration for router setup with index route being hit