added a way to disable the resizing