use inner frame rect
added inner window rect
first text window logic