MOD:add double click exit logic