fix show/hide accordions if nested