Updated to call the method for rendering HTML