basic responsiveness to window resizing