add double click detection