updated index to redirect