Code about center window content