Add and modified the method of resize function