Edited widget creation using more Drupal style