Reorder notebook buttons into logical groups.

Closes #177