change index page & fix some errors