Created helper function 'create_widget_helper'