wrap up show/hide logic as method call