Move file edit from views/__init__.py to views/file.py