adapt to  multi browser