Cleaning docpanel init up