re-introduced the behavior of waiting for onload for panel initialization