initial cloud widget implementation, fix safedowncasts