event on metadata loaded