improve style and behavior of code popout window