started pages.py and main.py work

started pages.py and main.py work