Shifts tooltip after request is completed

Tooltips are shown after the request for playing return something
meaning that if ip is qrong an alert will shown first not tooltip
Also add class functions for tooltip
Directly handles functions on error
Changes code for ip test function