show/hide card detail boxes appropriately