Fixed the problem with authorization cancelation
Surveys template type
minor fixes