Refactoring, made text resize on both window dimension resizing