added dblclick function