Added management of doubleclick event