Updated view.py from Bug #4440 and Bug #4449

Corrected a "Delete" button issue when editing configuration related items.  Fixed from bug #4440 patch.
Corrected an error when pressing the edit/update "Devices" saying " ! Sorry, an error occurred".  Fixed from bug #4439 patch.