Added survey editing functionality