Merge code of index page.