Manage outside clicks