Add double click utility function