auto window resizing on mac and windows (I hope)