added first working variant to lock/unlock a survey without editing the page (javascript based). Still page has to be reloaded. Also no checks are done whether functionality is allowed or not.