Make action switch depend on chars, add quit option