modified panel, to use getElementById instead of querySelector