Added intent on mouseout
Changed variable names for readability