Changed dbclick to click event