add and remove device connections for document. UI to be improved, but functional