Resize main form