remove render from resize function