wire up a command for show/hide contents