Add voting

merged ajax code in create_survey with refactor branch