directive for click to edit