Make side_panel tree more efficient.