[code] add panel management