added ability to resize