add component support in index.html