refactored messagepanel to use masterpage show/hide