Moved merge of votes and form to php side