fix logic to show vote buttons