function to toggle cencorship state