update getFolders and getDevices to send respective array as soon as it has data
refactor status-list to contain device and folder list