Implement pair windows and text grid windows.