fixed borderpanel and background panel not processing events correctly