polish for button on firefox and button event handling