Fix preview bug and issue where surveys could be created a couple times by accident