New main: better menu resize script