fixed delete survey and tweak main.js