Fixed toggle buttons. Handle Exit command.