changes to allow double click edit

added functions to support double click edit