pass info about the current tab to the panel when it's shown