Changed main panel to dock layout panel type.