added form attribute and def to page.py