Modify foo.view.py and Add foo.page.py for page function