Added redirect to survey and id generation