implemented a working (but dirty) collapse/expand all