adding better handling of mouseout