1. Added methods and UI for updating existing devices.
2. Added methods and UI for deleting existing devices.