added panel
added js code to panel