Unable to add widgets to the form