graph resize working