Added ajax to edit surveys and view results