reset switches a flag off, set switches it on.

In particular: reset(pan, SHOW) makes your panel invisible, set(pan, SHOW) makes it visible.