ajax device and rack creation form prototype 2