added double click functionality