Added method to render html