Problem with shutting down on click - resolved