debugging why close link is not triggered