move voting-related stuff into voting.php
todo fixed
edit message