Reworked the imperative Widget system into an Immediate Mode style