Added resize handler.