save type of tree in url after hash
removed log statements, addAvl seems to work now