fix flickering issue in safari

fix link outline issue in firefox