added support for callback after resize