fixed button handling bug on firefox and ie in win 7