rewrite index.php to be compatible with php 5.2
fix spacing and typo
add nav bar