moved mixin into functions and removed palette from tooltip