Added frontend voting functionality