few changes regarding the api. buiding the html using javascript. click is not working anymore.