index page update but not working