Added support for auto-opening of survey