add panel onload method