Register show/hide events for frame and gengrid