fix(tooltip): fix positioning error when appendToBody is set to true

Closes #387

use offset function instead position function when appednToBody is set to true
fix(tooltip): close tooltips appended to body on location change

Closes #345