Modified close button scope.