move setPageContent  method to operations class