KRACOEUS-7722:fixed issue where questionnaire tabs duplicated on save

also fixed broken java script that expands questionnaire when answer is answer