The logic is slightly off.
If we click the UP or DOWN, the vote is automatically counted. Then a box pops up with two buttons,
2) Leave message and vote
The box also has the standard corner X to dismiss the box.
The vote should only be taken when one of the two buttons are clicked. If the X is clicked, no vote should occur.