cleaned up layout.php of unecessary code