Revert "Revert "UI, json and drawing""

This reverts commit 3595f4c4acb891639a5d876f107b7d20b799b786.