improve toolltip code usage with mixins