Show graphs and lists conditionally