changes in categories creation and tree structure