Move all visibility handlers to iframe recordViewChange()