toggle expanded state