refactor single and multiselect questionType blur popup logic