Updated layout.php to work with Azure 4