make panel show/hide events