chaned index page to dynamic