connect click and double click events