moved some code from ballot.php to reviewpage.php