refactored  using .hover() and toggle().