adapted poll.php according to code style