improving the html template, fixing auto url retrieval