Refactored view onExitsChanged method