Please move this line after `loadPanel` as it is the operation that may introduce dom changes.