add loading event on links