update lib layout.php