Added functionality to buttons

Made the “show details” button actually show details. Then allowed it
to toggle and made the test displayed on the button itself change where
appropriate.
Merge branch 'Showing-teamate-data-on-the-UI'