successful voting function for comments and submissions