re-route happening to index