Moving index.php content to modules