Widget changes according the changes on Databox API. Some other
refactorings.