updating view.py for edit fix.