adding resize component