made tiny renderer function for ballot.php