moved button hooks out of Peirce.js