addlistener afer function