move views to views.py