added location attribute to devices. added autofill while linking switch with device