fixed bug in updateMetadata, also now we can delete rows in left treeview with delete key