init html and ctrl for api

init html and ctrl for api