Clean up mousemove handler and remove unused tooltip code