Refactor dock panels