add addrepo function and html