Setup listener in settings