Separated loop content from index.php