restructure tree + initial version of tree sortable