added code for rendering the html content
label click