add support for the "resize" event