Change documents hierarchy