added a delegate callback when the settings view shows and hides