added counterpoint_create_widget() to functions