adapt to multi browser