Fixed a bug with view a start page.
Added some code into model.py