added double click insert function