implement render method for html