close edit mode if click on node in tree