Edit modal for device