use ajax get devices