split view.py file into multiple files