added vote functionality to comments and posts