added possible solution for double click event