started playing with adding devices with ajax calls