Time for action – creating the UIWidget class