Added voting functionality to posts