better mediaPanel show/hide management