make double click event work