improve add device dialog; lint fixes