init the index page