update: device loop and panel constructors and demo prepareDataForDemo