made it working with the html markup