jquery collapsible stays open when updated and rerendered