Update index page and fix bugs