fix new panel handling