unbind listener properly