handle toggling on systems with spaces