Used a button instead of checkbox for trailing whitespace, removed existing click bindings before rebinding