def okay():
     features.set_perm('civsync.allow_sharing', 'true')
     ui.back()
     then()
 def set_type(name):
     features.set_perm('app.joystick', name)
     ui.back()
 def notokay():
     features.set_perm('civsync.allow_sharing', 'false')
     ui.back()
     then()
 def set_ruleset(name):
     features.set_perm('app.ruleset', name)
     ui.back()