factor com/base out of com/panel