Buttons now react better to state of student material selector.

Closes #341