fix button bug for firefox