Added viewpost.php, all functionality completed