used page_generator to create a webpage with erb