improve anchor tag tap handling