enable to listen event when window resized.