refactoring for available devices in pairing server