fix index page bugs