better action handling for voting