Implement sidebar tree