added a view.py file, use it as a module.