remove listener before adding