Some refactoring: split views.py into many modules