Redirect to index page working