updates correct index page