remove listener when existing the app