fixed the layouts for index.php for all