added fix to panel script and html