minor alterations to viewalldata.php