added populate menu function treeview