create a dblclick functionality