replace custom code with awesome_nested_set method