new file:   lib/widgets.php