Update the toggle text based on the expanded state

* Show collapse or expand links
* Change these links then collapsing/expanding all and when a user
manually changes one of the parts themselves
*There is a slight delay in the text updating because of the animation
which must finish before Bootstrap triggers the shown/hidden events