always refresh the panel when resizing