cleanup card detail rendering