make sure voting is allowed before rendering buttons
and counting votes