Unable to insert widget to a form