added spans to panel objects