Changing class' dog listener