Update index.php

display page contents according to page