fix responsiveness of window rew resizing