Fixed a bug in Segmented controller when swapping content sections back and forth

Bug in Segmented controller: when swapping content sections back and forth, later section is appended to the bottom of previous section.

This bug is fixed by removing the 'active' class from all segmented-controller-items.