added mouse out handler for resize