refator doc panels