updated separation to pages.py