populating index.php and elements.php

linked all the sections to index.php
Implementing server side logic to populate elements.php