added default vertical margin for p tags, placed pagination function in index.php