changed that tip was displayed from alert to a div