build structure of index page