small refactor.
implement show and clear.