Adjust widget.php and renamed render function