Added resizing to material box