adding collapse all and expand all functions