create function for tip display