class to html pages