change page_controller arrays and hashes to objects and added corresponding models