Handle $.button

Fixes issue where $.button would open and close on click.