simplify binding in index.html