handling graph resize