fixed selection bug with edit
changed menu component to treeview