window resizing better, drawCurves, readonly solutions