Updated PHP for layout