update custom_tooltip method