Refactor to generalize HTMLcontentView for the app