much better tooltip and click_function behavior