Simplified the creation of ui elements by introducing a widget type