added post voting function with ajax