adding collapse feature to typography