Rewrite index by bootstrap,fix #2