Added method refresh to update the treeview