Change how to popout is shown and hidden